package com.fire.user.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;

/**
 * <p>
 * 客户关系表
 * </p>
 *
 * @author raoyuxing123
 * @since 2018-04-24
 */
@TableName("t_mit_client_relation")
public class TMitClientRelation extends Model<TMitClientRelation> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 客户id
     */
    private Integer sclientid;
    /**
     * 和客户有关系的人
     */
    private Integer tclientid;
    /**
     * 创建时间
     */
    private Date createtime;
    /**
     * 更新时间
     */
    private Date updatetime;
    /**
     * 01:本人,02:配偶,03:父母,04:子女,05:兄弟姐妹,06:祖父母、外祖父母,07:祖孙、外祖孙,08:雇佣,99:其他,05-99会要求人工核保
     */
    private Integer relation;
    /**
     * 描述(01:本人,02:配偶,03:父母,04:子女,05:兄弟姐妹,06:祖父母、外祖父母,07:祖孙、外祖孙,08:雇佣,99:其他,05-99会要求人工核保)
     */
    private String relationname;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getSclientid() {
        return sclientid;
    }

    public void setSclientid(Integer sclientid) {
        this.sclientid = sclientid;
    }

    public Integer getTclientid() {
        return tclientid;
    }

    public void setTclientid(Integer tclientid) {
        this.tclientid = tclientid;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Date getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(Date updatetime) {
        this.updatetime = updatetime;
    }

    public Integer getRelation() {
        return relation;
    }

    public void setRelation(Integer relation) {
        this.relation = relation;
    }

    public String getRelationname() {
        return relationname;
    }

    public void setRelationname(String relationname) {
        this.relationname = relationname;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "TMitClientRelation{" +
        "id=" + id +
        ", sclientid=" + sclientid +
        ", tclientid=" + tclientid +
        ", createtime=" + createtime +
        ", updatetime=" + updatetime +
        ", relation=" + relation +
        ", relationname=" + relationname +
        "}";
    }
}
